#!/bin bash 

pass = 0;
fail =0;

echo our first parameters passed were 80 and 79
result=$(java -jar Grades.jar 80 79)

if ["$result" == "Component Fail"] || [ "$result" == "fail" ]; then
((fail++))
 else
((pass++))
fi


echo $result
echo our second parameters passed were 100 and 100
result=$(java -jar Grades.jar 100 100)
echo "Incorrect result!! Resulted in a Fail, which is incorrect as it should return pass with distinction"
echo
if ["$result" == "Component Fail"] || [ "$result" == "fail" ]; then
((fail++))
 else
((pass++))
fi

echo our third were 00 and 00, which resulted in component fail
result=$(java -jar Grades.jar 00 00)
echo "correct result"
echo
if ["$result" == "Component Fail"] || [ "$result" == "fail" ]; then
((fail++))
 else
((pass++))
fi

echo our fourth were 41 and 41,  which resulted in fail
result=$(java -jar Grades.jar 41 41)
echo "correct result"
if ["$result" == "Component Fail"] || [ "$result" == "fail" ]; then
((fail++))
 else
((pass++))
fi


echo "======================="
echo "test report statistics"
echo "======================="

echo "passed" + correct
echo "failed" + incorrect













